package com.hunan.chinamobile.service;

import com.hunan.chinamobile.core.Service;
import com.hunan.chinamobile.dto.DeviceDTO;
import com.hunan.chinamobile.model.Device;

import java.util.List;

public interface DeviceService extends Service<Device>{

    int delById(String id);

    Device findByName(String deviceName);

    Device findByDeviceId(String deviceId);

    int findDeviceCount(String bsId);

    DeviceDTO findDTO(String deviceId);

    List<Device> findAll();

    List<DeviceDTO> findList(String cityId,String bsId,String deviceName,Integer online,Integer state);

    int updateOnlineByOneNetId(int status,int devId);
}
